package bookstudytest.singleton;

import javax.xml.bind.SchemaOutputResolver;

/**
 * @Auther: Lee
 * @Date: 2018/6/12 14:40
 * @Description: 使用枚举实现单例
 */
public enum EnumDemo {
    INSTANCE;

    EnumDemo() {
        System.out.println("我好了！");
    }

    public void doSomething() {
        System.out.println("我干活了！");
    }
}
